<template>
	<view class="content">
		<image class="logo" src="/static/logo.png"></image>

		<view class="btnLogin">
			<button @click="goUser">
				登录
			</button>

			<navigator class="btn" hover-class="hover" url="/pages/myview/myview?name=raoqi" open-type="navigate">view的试验</navigator>
			<navigator class="btn" url="../myswiper/myswiper" open-type="navigate">swiper的试验</navigator>
			<navigator class="btn" url="../myscrollview/myscrollview" open-type="navigate">scrollview的试验</navigator>
			<navigator class="btn" url="../mymovable/mymovable" open-type="navigate">movable的试验</navigator>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello'
			}
		},
		onLoad() {

		},
		methods: {
			goUser() {
				console.log('test');
				uni.switchTab({
					url: "/pages/user/user"
				})
			},
			test1() {
				uni.navigateTo({
					url: "/pages/myview/myview?name=raoqi"
				})
			}
		}
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
		border-radius: 50%;
	}

	.btn {
		position: relative;
		display: block;
		margin-left: auto;
		margin-right: auto;
		padding-left: 14px;
		padding-right: 14px;
		box-sizing: border-box;
		font-size: 18px;
		text-align: center;
		text-decoration: none;
		line-height: 2.55555556;
		border-radius: 5px;
		-webkit-tap-highlight-color: transparent;
		overflow: hidden;
		color: #FFF;
		background-color: #349544;
		cursor: pointer;
	}
	.hover{
		background-color: aquamarine;
	}
</style>
